﻿#region Using Directives

using System;

using Csla;

#endregion

namespace MarketPulse.BusinessLogic.Common.Criteria
{
    /// <summary>
    /// Criteria class specifying the GUID to use to identify a single EnquiryType
    /// </summary>
    [Serializable]
    public class EnquiryTypeGUIDCriteria : CriteriaBase<EnquiryTypeGUIDCriteria>
    {

        #region Constructors

            /// <summary>
            /// Default constructor for this class
            /// </summary>
            /// <param name="enquiryTypeGuid">The Guid of the EnquiryType to associate with this criteria</param>                      
            public EnquiryTypeGUIDCriteria(Guid enquiryTypeGuid)
            {
                EnquiryTypeGUID = enquiryTypeGuid;
            }

        #endregion

        #region Properties

            /// <summary>
            /// This Guid is used to identify the ReportingPeriod object associated with this criteria
            /// </summary>
            public static PropertyInfo<Guid?> EnquiryTypeGUIDProperty = RegisterProperty<Guid?>(p => p.EnquiryTypeGUID);
            /// <summary>
            /// This Guid is used to identify the ReportingPeriod object associated with this criteria
            /// </summary>
            public Guid? EnquiryTypeGUID
            {
                get { return ReadProperty(EnquiryTypeGUIDProperty); }
                private set { LoadProperty(EnquiryTypeGUIDProperty, value); }
            }

        #endregion

    }
}
